package com.lcxw.hxzbapi.controller.vipcontroller;

import com.lcxw.hxzbapi.entity.requestBean.GetGoodNameReq;
import com.lcxw.hxzbapi.entity.requestBean.PublishPagingReq;
import com.lcxw.hxzbapi.entity.requestBean.RequestParamBasic;
import com.lcxw.hxzbapi.entity.response.Response;
import javax.annotation.Resource;
import javax.validation.Valid;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("api/vip/right")
@Slf4j
public class VipRightController {

    @Resource
    VipRealization vipRealization;

    //发布寻人广播接口
    @PostMapping("/paging/publish")
    public Response publishPaging(@RequestBody PublishPagingReq publishPagingReq) {
        return vipRealization.publishPaging(publishPagingReq);
    }

    //获取所有寻人广播接口
    @PostMapping("/paging/getAll")
    public Response getPaging(@RequestBody RequestParamBasic requestBody) {
        return vipRealization.getPagingList(requestBody);
    }

    //获取靓号列表接口
    @PostMapping("/goodName/getList")
    public Response getGoodName(@Valid @RequestBody GetGoodNameReq getGoodNameReq) {
        return vipRealization.getGoodName(getGoodNameReq);

    }
}
